import { Switch, Form, Col } from 'antd';
interface FormItemSwitchProps {
    name: string,
    label: string,
}
const FormItemSwitch = (props: FormItemSwitchProps) => {
    return (
        <Col style={{margin:"16px 0"}}>
            <Form.Item name={props.name} label={props.label}>
                <Switch />
            </Form.Item>
        </Col>

    )
}

export default FormItemSwitch;
export type { FormItemSwitchProps };
